home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-11-27 | 1.5 KB | 55 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="3"
- "COUNT"="1"
- "UIPATH"="Internet\Outlook Express\Appearance"
- "NAME"="Change Welcome Page"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Path:"
- "DATA 1"="HTML Documents (*.htm;*.html)|*.htm;*.html|All Files (*.*)|*.*"
- "DESCRIPTION 1"="Here you can use your own, custom start page for Outlook Express instead of the default one. Just type in the path above."
- "DESCRIPTION 2"="If you want to use the default page, just clear the field."
- "VERSION"="1.03"
- "AUTHOR"="Xteq Systems (Neil R. Turner)"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "CONTACTURL"="http://www.xteq.com/"
-
- sValPath=""
- sP1="HKCU\Software\Microsoft\Outlook Express\"
- sP2="HKCU\Identities\Last User ID"
- sVal="FrontPagePath"
-
- SUB Plugin_Initialize
- 'OK, let's have a look if we are running IE5...
- s=RegReadValue(sP2)
- if IsEmpty(s)=false then
- 'OK - we have a value - check if we can find OE
- sValPath="HKCU\Identities\" & s & "\Software\Microsoft\Outlook Express\5.0\"
- If RegPathExists(sValPath) then
- 'OE5 !
- sValPath=sValPath '& sValue
- else
- sValPath=sP1 '& sValue
- end if
- else
- sValPath=sP1 '& sValue
- end if
-
- i=RegReadValue(sValPath & sVal)
- Call SetUIElement(1,i)
- END SUB
-
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- s=GetUIElement(1)
- if len(s)=0 then
- 'If values exists, delete it
- s=RegValueExists(sValPath & sVal)
- if s=true then
- Call RegDeleteValue(sValPath & sVal)
- end if
- else
- Call RegWriteValue(sValPath & sVal,s,1)
- end if
- END SUB
-
- SUB Plugin_Terminate
- END SUB